home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmTranslateKey.z / XmTranslateKey
Text File  |  1998-10-30  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTrrrraaaannnnssssllllaaaatttteeeeKKKKeeeeyyyy((((3333XXXX))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmTTTTrrrraaaannnnssssllllaaaatttteeeeKKKKeeeeyyyy((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmTTTTrrrraaaannnnssssllllaaaatttteeeeKKKKeeeeyyyy - The default keycode-to-keysym translator
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           #include <Xm/Xm.h>
  13.           vvvvooooiiiidddd XXXXmmmmTTTTrrrraaaannnnssssllllaaaatttteeeeKKKKeeeeyyyy(
  14.           DDDDiiiissssppppllllaaaayyyy ****ddddiiiissssppppllllaaaayyyy,
  15.           KKKKeeeeyyyyCCCCooooddddeeee kkkkeeeeyyyyccccooooddddeeee,
  16.           MMMMooooddddiiiiffffiiiieeeerrrrssss mmmmooooddddiiiiffffiiiieeeerrrrssss,
  17.           MMMMooooddddiiiiffffiiiieeeerrrrssss ****mmmmooooddddiiiiffffiiiieeeerrrrssss____rrrreeeettttuuuurrrrnnnn,
  18.           KKKKeeeeyyyySSSSyyyymmmm ****kkkkeeeeyyyyssssyyyymmmm____rrrreeeettttuuuurrrrnnnn);
  19.  
  20.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  21.           This page documents Motif 2.1.
  22.  
  23.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.           XXXXmmmmTTTTrrrraaaannnnssssllllaaaatttteeeeKKKKeeeeyyyy is the default _X_t_K_e_y_P_r_o_c translation
  25.           procedure for Motif applications. The function takes a
  26.           keycode and modifiers and returns the corresponding keysym.
  27.  
  28.           XXXXmmmmTTTTrrrraaaannnnssssllllaaaatttteeeeKKKKeeeeyyyy serves two main purposes: to enable new
  29.           translators with expanded functionality to get the default
  30.           Motif keycode-to-keysym translation in addition to whatever
  31.           they add, and to reinstall the default translator. This
  32.           function enables keysyms defined by the Motif virtual
  33.           bindings to be used when an application requires its own
  34.           XtKeyProc to be installed.
  35.  
  36.           _d_i_s_p_l_a_y   Specifies the display that the keycode is from
  37.  
  38.           _k_e_y_c_o_d_e   Specifies the keycode to translate
  39.  
  40.           _m_o_d_i_f_i_e_r_s Specifies the modifier keys to be applied to the
  41.                     keycode
  42.  
  43.           _m_o_d_i_f_i_e_r_s__r_e_t_u_r_n
  44.                     Specifies a mask of the modifier keys actually
  45.                     used to generate the keysym (an AND of _m_o_d_i_f_i_e_r_s
  46.                     and any default modifiers applied by the currently
  47.                     registered translator)
  48.  
  49.           _k_e_y_s_y_m__r_e_t_u_r_n
  50.                     Specifies a pointer to the resulting keysym
  51.  
  52.      RRRREEEELLLLAAAATTTTEEEEDDDD
  53.           VVVViiiirrrrttttuuuuaaaallllBBBBiiiinnnnddddiiiinnnnggggssss(3).
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.